<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/admintop.jsp"%>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<%@ include file="/jsp/jscommom.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>企业推荐管理</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<script type="text/javascript">
function doblack(url){
window.open(url,"_blank");
}
</script>
	<body>
		<html:form action="/com/struts/system/recommend" method="post">
			<table width="97%" border="0" align="center" cellpadding="0"
				cellspacing="1" class="line1">
				<tr>
					<td>
						<table width="100%" border="0" align="center" cellpadding="0"
							cellspacing="1" class="line1">
							<tr>
								<td class="titlebg" colspan="2">
									企业推荐管理
								</td>

							</tr>

							<tr>
								<td class="mtdtitle1">
									公司名称：
								</td>
								<td class="mtdtextleft">
									<html:text property="corporName" styleClass="input1"></html:text>
								</td>
							</tr>
							<tr>
								<td class="mtdtitle1" colspan="2">
									<input type="submit" value="查询" class="tbutton" />
									<input type="reset" value="重置" class="tbutton" />
								</td>
							</tr>
						</table>
					</td>
				</tr>


				<tr>
					<td class="mtdtextcenterwrite">
					&nbsp;
					</td>
				</tr>

				<tr>
					<td>
									<table width="100%" border="0" align="center" cellpadding="0"
										cellspacing="1" class="line1">
										<tr>
											<td class="mtdtitle1">
												公司名称
											</td>

											<td class="mtdtitle1">
												状态
											</td>
										</tr>
										<logic:empty name="page" property="sqlList">
											<tr>
												<td colspan="2" class="mtdtextcenterwrite">
													没有可显示的内容！
												</td>
											</tr>
										</logic:empty>
										<logic:notEmpty name="page" property="sqlList">
											<logic:iterate type="com.ibatis.po.corpor.TCorporation"
												id="recommendList" name="page" property="sqlList">
												<tr style="cursor:hand"
													onclick="doblack('/com/struts/system/editrecommend.do?ID=${recommendList.id}')">
													<td class="mtdtextcenterwrite">
														${recommendList.corporationName}
													</td>
													<td class="mtdtextcenterwrite">
														<logic:equal name="recommendList" property="isrecommend"
															value="1">推荐</logic:equal>
														<logic:equal name="recommendList" property="isrecommend"
															value="0">非推荐</logic:equal>
													</td>
												</tr>
											</logic:iterate>
										</logic:notEmpty>

										<tr>
											<td class="mtdtitle1" colspan="2">
												<table width='100%'>
													<tr>
														<td class="left">
															<%=mPage.getPageInfo()%>
														</td>
														<td class="right">
															<%=mPage.getTurnPageLink()%>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
					</td>
				</tr>
		</html:form>
	</body>
</html>
